<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
	
    <div class="main">
 
   			
            <div class="mod">
            	<div class="head">app分类</div>
                <div class="body keywords">
                	<strong>代码语言：</strong> 
                    <a href="{url("?module=codex&action=tag&name=html")}">html</a>
                    <a href="{url("?module=codex&action=tag&name=css")}">css</a> 
                    <a href="{url("?module=codex&action=tag&name=javascript")}">javascript</a>
                    <a href="{url("?module=codex&action=tag&name=jquery")}">jQuery</a>
                    <a href="{url("?module=codex&action=tag&name=php")}">php</a>
                    <a href="{url("?module=codex&action=tag&name=asp")}">asp</a>
                    <a href="{url("?module=codex&action=tag&name=mysql")}">mysql</a>
                    <a href="{url("?module=codex&action=tag&name=html5")}">html5</a>
                    <br/>
                    <strong>浏览器兼容：</strong> 
                    <a href="{url("?module=codex&action=tag&name=ie6")}">ie6</a>
                    <a href="{url("?module=codex&action=tag&name=ie7")}">ie7</a> 
                    <a href="{url("?module=codex&action=tag&name=ie8")}">ie8</a>
                    <a href="{url("?module=codex&action=tag&name=ie9")}">ie9</a>
                    <a href="{url("?module=codex&action=tag&name=ie10")}">ie10</a>
                    <a href="{url("?module=codex&action=tag&name=firefox")}">firefox</a>
                    <a href="{url("?module=codex&action=tag&name=chrome")}">谷歌浏览器(chrome)</a>
                    <a href="{url("?module=codex&action=tag&name=oprea")}">欧朋(Oprea)</a>
                    <a href="{url("?module=codex&action=tag&name=360")}">360浏览器</a>
                    <br/>
                    <a href="{url("?module=codex&action=tag&name=maxthon")}">遨游浏览器(maxthon)</a>
                    <a href="{url("?module=codex&action=tag&name=qq")}">QQ浏览器</a>
                </div>
            </div> 
            
        	
            <div class="mod">
            	<div class="head">代码分享</div>
                <div class="body">
                	
                    <style>
						.list li{
							border-bottom:1px dashed #CCCCCC; margin:20px 0 0 0;
						}
						.list li p{
							margin:0; padding:0;
						}
					 </style>
					 <ul class="list">
					
					  {get sql="SELECT * FROM `table_codex` WHERE  status=99 ORDER BY codexid DESC" rows="20" page="$page"}
					  {php $keywords = explode(',',$r[keywords]);}
						<li>
							<p><a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></p>
							<p>{str_cut($r[description], 300)}</p>
							<p><a target="_blank" href="{url("?module=space&userid=$r[userid]")}">{username($r[userid])}</a>发布于：{date('Y-m-d',$r[updatetime])}</p>
							
							{if $keywords}
							<p>tag:
								{loop $keywords $k $v}
								<a href="{url("?module=$module&action=tag&name=$v")}">{$v}</a>
								{/loop}
							</p>
							{/if}
						   
						</li>
			
					  {/get}
					</ul>
					
					<div class="pagination">
						{$pages}
					</div>
            
                </div>
            </div>
         
    </div>
    
    <div class="aside">
    	
        <div class="mod">
            <div class="head">我要分享</div>
            <div class="body">
                <a href="{url("?module=$module&action=add")}">我要分享</a>
            </div>
        </div>
        
        <div class="mod">
            <div class="head">本月关注度最高{$catname}</div>
            <div class="body">
                <ul>
                {get sql="SELECT * FROM `table_codex` WHERE  status=99 ORDER BY hits DESC" rows="20" page="$page"}
                <li>({$r[hits]})&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></li>
                {/get}
                 </ul>
            </div>
        </div>
    
        
        <div class="mod">
            <div class="head">热门标签</div>
            <div class="body keywords">
          <!--{get sql="select tag,hits from table_keyword order by listorder desc,hits desc" rows="10"}-->
            <a href="{url("?module=content&action=tag&name=".urlencode($r[tag]))}">{$r[tag]} <small>({$r[hits]})</small></a>
          <!--{/get}-->
          </div>
        </div>
          
    </div>
</div>


{template 'footer.html'}

